package com.Cfeng.XiaohuanChat.service;

import com.Cfeng.XiaohuanChat.entity.UserNote;

import java.util.List;

/**
 * @author Cfeng
 * @date 2022/8/12
 * 存储在Mysql数据库中的笔记信息的服务
 */

public interface UserNoteService {

    void addNote(UserNote note);

    UserNote getNote(String noteTitle);

    UserNote getNote(Long id);

    List<UserNote> getNotes();

    void removeNote(String noteTitle);

    void updateNote(UserNote note) throws Exception;
}
